<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>001 九九乘法表</title>
</head>
<body>

  <h1>九九乘法表</h1>
  <p>输出一个九九乘法表</p>
  <div id="show">loading...</div>

  <script>
    var size = 9,
        tableString = "";

    for(var i = 1; i <= size; i++) {
      for(var j = 1; j <= i; j++) {
        tableString += j + "*" + i + "=" + j * i + " "
      }
      tableString += '<br />';
    }

    document.getElementById("show").innerHTML = tableString;
  </script>

</body>
</html>
